<html>
 <head>
  <title>Test Page for Errors</title>
  <script language="javascript" src="../../jsunit/app/jsUnitCore.js"></script>
  <script language="javascript" src="../compiled/ca-all.js"></script>
 </head>
 <body>
  <script language="javascript">
    function testCreation() {
		var TestError = CA.Errors.Create("Test");
		try{
			throw new (CA.Errors.Create("Test"))("This is a test");
		}catch(e){
			assertTrue("Should be an instance of TestError",e instanceof TestError);
		}
		assertEquals("Should equal TestError",TestError,CA.Errors.Create("Test"));
		assertEquals("Should equal TestError",TestError,CA.Errors.Test);
    }
  </script>
 </body>
</html>